package org.dromara.business.domain.vo;

import org.dromara.business.domain.UserSkinInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.mybatis.core.vo.BaseVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户主页皮肤配置视图对象 t_user_skin_info
 *
 * @author Hao Tong Xue
 * @date 2025-06-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserSkinInfo.class)
public class UserSkinInfoVo extends BaseVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 皮肤ID
     */
    @ExcelProperty(value = "皮肤ID")
    private Long id;

    /**
     * 皮肤名称
     */
    @ExcelProperty(value = "皮肤名称")
    private String skinName;

    /**
     * 是否免费
     */
    @ExcelProperty(value = "是否免费", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "yes_no")
    private Long isFree;

    /**
     * 皮肤图片
     */
    @ExcelProperty(value = "皮肤图片")
    private Long skinFileId;

    /**
     * 皮肤图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "skinFileId")
    private String skinFileIdUrl;

    /**
     * 皮肤类型
     */
    @ExcelProperty(value = "皮肤类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "skin_type")
    private Long skinType;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
